package com.learn.form;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Data
public class AdminForm {
    @NotEmpty(message = "管理员账号不能为空！")
    @Length(max = 10)
    @Setter @Getter private String name;
    @Setter @Getter private byte status;
    @NotEmpty(message = "角色不能为空！")
    @Setter @Getter private String roleId;
    @NotEmpty(message = "真实姓名不能为空！")
    @Setter @Getter private String realName;
    @Setter @Getter private int id;
    @Setter @Getter private String password;
    @Setter @Getter private String confirmPassword;
}
